/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package GameEvents;

/**
 *
 * @author avia
 */
public class GameEvents implements Event{
    String GameName;
    Integer EventID;
    Integer TimeoutCount=0;
    Integer EventType;
    String PlayerName;
    String EventMessage;
    Integer BoardSquareID;
    public GameEvents (String GameName,Integer EventID,Integer TimeoutCount,Integer EventType,String PlayerName
            ,String EventMessage,Integer BoardSquareID){
        this.GameName=GameName;
        this.EventID=EventID;
        this.EventType=EventType;
        this.PlayerName=PlayerName;
        this.EventMessage=EventMessage;
        this.TimeoutCount=TimeoutCount;
        this.BoardSquareID=BoardSquareID;
        DEBUG("All Params");
    }
        public GameEvents (String GameName,Integer EventID,Integer EventType,String PlayerName
            ,String EventMessage,Integer BoardSquareID){
        this.GameName=GameName;
        this.EventID=EventID;
        this.EventType=EventType;
        this.PlayerName=PlayerName;
        this.EventMessage=EventMessage;
        this.BoardSquareID=BoardSquareID;
	this.TimeoutCount = new Integer(0);
        DEBUG("No Timeout");
    }

    public GameEvents() {
        this.GameName = "out of bounce";
        this.EventID = -1;
        this.TimeoutCount = -1;
        this.EventType = -1;
        this.PlayerName = "no name";
        this.EventMessage = "no massage";
        this.BoardSquareID = -1;
        DEBUG("No Params");
    }


    public String getGameName() {
        return GameName;
    }

    public int getEventID() {
        return EventID;
    }

    public int getTimeoutCount() {
        return TimeoutCount;
    }

    public int getEventType() {
        return EventType;
    }

    public String getPlayerName() {
        return PlayerName;
    }

    public String getEventMessage() {
        return EventMessage;
    }

    public int getBoardSquareID() {
        return BoardSquareID;
    }

    public int getFirstDiceResult() {
       return  -1;
    }

    public  int getSecondDiceResult() {
       return  -1;
    }

    public boolean isPlayerMoved() {
       return  false;
    }

    public int getNextBoardSquareID() {
       return  -1;
    }

    public boolean isPaymentToOrFromTreasury() {
       return  false;
    }

    public boolean isPaymemtFromUser() {
       return  false;
    }

    public String getPaymentToPlayerName() {
       return  null;
    }

    public int getPaymentAmount() {
       return  -1;
    }
    public void DEBUG(String params)
    {
         System.out.println(params);
        if (this.EventMessage!=null)
        System.out.println(this.EventMessage.toString()+" ");
        if (this.PlayerName!=null)
                System.out.println(this.PlayerName.toString());
    }


}
